package com.ly.common.enums;

public enum KingCalculateType {
    CGRKD("CGRK", "标准采购入库单", "入库","IN"),
    CGTLD("CGTLD", "采购退料单","出库","OUT"),
    QTRKD_PT("QTRKD_PT", "其他入库单-普通","入库","IN"),
    QTRKD_TH("QTRKD_TH", "其他入库单-退货","出库","OUT"),
    PYD("PYD", "盘盈单","入库","IN"),
    PKD("PKD", "盘亏单","出库","OUT"),
    XSCKD("XSCKD", "标准销售出库单","出库","OUT"),
    XSTHD("XSTHD", "销售退货单","入库","IN"),
    QTCKD_PT("QTCKD_PT", "其他出库单-普通","出库","OUT"),
    QTCKD_TH("QTCKD_TH", "其他出库单-退货","入库","IN"),
    DBD_CZ("DBD_CZ", "调拨单-出库","出库","OUT"),
    DBD_RK("DBD_RK", "调拨单-入库","入库","IN"),
    ZZCXD_ZZM("ZZCXD_ZZM", "组装拆卸单-组装(母)","入库","IN"),
    ZZCXD_ZZZ("ZZCXD_ZZZ", "组装拆卸单-组装(子)","出库","OUT"),
    ZZCXD_CXM("ZZCXD_CXM", "组装拆卸单-拆卸(母)","出库","OUT"),
    ZZCXD_CXZ("ZZCXD_CXZ", "组装拆卸单-拆卸(子)","入库","OUT"),
    CBTZD("CBTZD", "成本调整单","无","WU");


    private final String code;
    private final String name;
    private final String desc;
    private final String descType;


    public static KingCalculateType getEnum(String code) {
        for (KingCalculateType type : KingCalculateType.values()) {
            if (type.getCode().equals(code)) {
                return type;
            }
        }
        return null;
    }


    KingCalculateType(String code, String name,String desc,String descType) {
        this.code = code;
        this.name = name;
        this.desc = desc;
        this.descType = descType;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public String getDesc() {
        return desc;
    }

    public String getDescType() {
        return descType;
    }
}
